<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/page/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>招聘管理信息列表</title>
<link href="${ctx}/css/recuitment.css" rel="stylesheet" type="text/css" />
<jsp:include page="/page/common/common.jsp" />
<script type="text/javascript" src="${ctx}/js/recruitmentresult/recruitmentresult.js"></script>
<script type="text/javascript">
function show(id){
	$('#'+id).show();
}
function hide(id){
	$('#'+id).hide();
}
function submitImp(){
	var templateFile = $('input[name=templateFile]').val();
	var ext = $('input[name=ext]');
	var oForm = $('form[name=impForm]');
	if(templateFile==''){
		alert('请选择文件！');
		return;
	}
	var tempExt = templateFile.substring(templateFile.lastIndexOf('.')+1);
	ext.val(tempExt);
	oForm.submit();
}
</script>
</head>
<body>
<div class="s_main">
<div class="title">招聘管理信息列表</div>
<hr>
<div class="ls_rect_content">
	<div class="ls_tool"><input type="button" value="导入excel" onclick="show('ls_import');" class="btn_imp"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="导出excel" onclick="javascript:window.location.href='${ctx}/rect/exmportRecuitInfo.do';"/></div>
	<div class="ls_import" id="ls_import">
		<div class="title"><span>导入招聘信息</span><a href="javascript:hide('ls_import');">关闭</a></div>
		<div class="content">
			<form name="impForm" action="${ctx}/rect/importInfo.do" method="post" enctype="multipart/form-data">
				<input type="hidden" name="ext"/>
				<input type="file" name="templateFile" class="im_file"/><br/>
				<input type="button" value="开始导入" class="im_submit" onclick="submitImp();"/>
			</form>
		</div>
	</div>
<hr>
<form name="searchForm" action="${ctx}/rect/getRectInfo.do" method="post">
	<table style="background:#ecf6fc;" >
		<tr>
				<td>应聘者姓名:<input type="text" name="condition.candidateName" class="add_input"/></td>
				<td>应聘者手机号码:<input type="text" name="condition.candidateMobile" class="add_input"/></td>
		</tr>
		<tr>
				<td><s:hidden name="condition.isDel" value="1"></s:hidden>
				通知日期: 开始<input type="text" name="condition.startTime" class="Wdate"
					onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="readonly"/> — 结束
				<input type="text" name="condition.endTime" class="Wdate"
					onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="readonly" />
				</td>
				<td>
					<input type="submit" value="查  询" class="add_btn" />
				</td>
			</tr>
	</table>
</form>
<table class="stripe_tb">
	<thead>
		<tr>
			<th>应聘者姓名</th>
			<th>联系手机</th>
			<th>职位名称</th>
			<th>通知日期</th>
			<th>预通知日期</th>
			<th>录用日期</th>
			<th>面试时间</th>
			<th>状态</th>
			<th>招聘网站</th>
			<th>简历来源</th>
			<th>未面试原因</th>
			<th>公司</th>
			<th>部门</th>
			<th>录入人</th>
			<th>评价</th>
			<th>备注</th>
			<th>简历</th>
			<th colspan="2">操作</th>
		</tr>
	</thead>
	<tbody>
		<s:if test="page.totalSize==0"><tr><td colspan="19" align="center">暂无信息</td></tr></s:if>
		<s:else>
				<s:iterator value="page.result" var="result">
					<tr>
						<td height="20px"><s:property value="candidateName" /></td>
						<td><s:property value="candidateMobile" /></td>
						<td><s:property value="positionId.positionName" /></td>
						<td><s:date name="noticeDate" format="yyyy-MM-dd" /></td>
						<td><s:date name="readyNoticeDate" format="yyyy-MM-dd" /></td>
						<td><s:date name="employDate" format="yyyy-MM-dd" /></td>
						<td><s:date name="interviewTime" format="yyyy-MM-dd HH:mm" /></td>
						<td><s:if test="status==1">不可面试</s:if>
							<s:elseif test="status==2">初试</s:elseif>
							<s:elseif test="status==0">可面试</s:elseif>
							<s:elseif test="status==3">复试</s:elseif>
							<s:elseif test="status==4">录用</s:elseif>
							<s:elseif test="status==5">不合格</s:elseif>
							<s:elseif test="status==6">人才储备</s:elseif>
							<s:elseif test="status==7">转正</s:elseif>
							<s:elseif test="status==8">跟踪</s:elseif>
							<s:elseif test="status==9">其它</s:elseif>
						</td>
						<td><s:property value="webSite" /></td>
						<td><s:property value="resumeSource" /></td>
						<td><s:property value="unInterview" /></td>
						<td><s:property value="complayId.complayName" /></td>
						<td><s:property value="departmentId.departmentName" /></td>
						<td><s:property value="username" /></td>
						<td><a href="javascript:show('d_assess_<s:property value="id" />');">评价</a><div class="ls_msg" id="d_assess_<s:property value="id" />"><div class="title"><span class="ls_span">评价详细信息</span><span><a href="javascript:hide('d_assess_<s:property value="id" />');">关 闭</a></span></div><div class="content"><s:property value="assess"/></div></div></td>
						<td><a href="javascript:show('d_remark_<s:property value="id" />');">备注</a><div class="ls_msg" id="d_remark_<s:property value="id" />"><div class="title"><span class="ls_span">备注详细信息</span><span><a href="javascript:hide('d_remark_<s:property value="id" />');">关 闭</a></span></div><div class="content"><s:property value="remark"/></div></div></td>
						<td>
<s:if test="resume==0">下载</s:if><s:else>
<a href="${ctx}/rect/download.do?fileName=<s:property value="resume"/>">下载</a></s:else></td>
						<td><a href="${ctx}/rect/toEditPage.do?recruitmentInfo.id=<s:property value="id" />">修改</a></td>
						<td><authz:authorize ifAllGranted="AUTH_RECT_DELETE">
						<a href="${ctx}/rect/delRectInfo.do?recruitmentInfo.id=<s:property value="id" />">删除</a>
						</authz:authorize>
						</td>
					</tr>
				</s:iterator>
		</s:else>
	</tbody>
	<tfoot>
		<tr>
			<td colspan="19" align="right" height="30px"><page:paging goUrl="${ctx}/rect/getRectInfo.do"
				query="${querycondition}" pageUtil="${page}" /></td>
		</tr>
	</tfoot>
</table>
</div>
</div>
</body>
</html>